<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>你们真棒啊v</h1>
    <script>
      //通过函数封装 求两个数组的最大值(使用展开运算)

      const arr1 = [1, 5, 8, 88, 10, 23]
      const arr2 = [2, 124, 66, 77, 88, 999]
      function getNum() {
        // console.log(...arr1)
        // console.log(...arr2)
        console.log(Math.max(...arr1))
        console.log(Math.max(...arr2))
      }
      getNum()
    </script>
  </body>
</html>
